home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib2
/
v_02_05
/
2n05065b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
274 b
|
18 lines
/*
* Display the size of a sizeof expression and of size_t
*/
#include <stdio.h>
char huge s[80000];
int main(void)
{
printf("%lu\n", (unsigned long)sizeof(sizeof(s)));
printf("%lu\n", (unsigned long)sizeof(size_t));
return 0;
}